package com.wuyou.designPatterns.template;

public abstract class AbstractDisplay {

    abstract void open();
    abstract void print();
    abstract void close();

    protected final void display(){
        open();
        for(int i=0;i<5;i++){
            print();
        }
        close();
        System.out.println(this.getClass());
    }
}
